package com.wangwen.wechatmp.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 微信配置表
 * 2019/10/10 9:12
 */
@Getter
@Setter
@Entity
@Table(name = "conf_wxmp")
@ApiModel(description="微信配置表")
@Component
public class ConfWxmp implements Serializable {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private long id;
    /**
     * 业务ID
     */
    @Column(name = "bus_id")
    private Integer busId;
    /**
     * 设置微信号的appId
     */
    @Column(name = "app_id")
    private String appId;
    /**
     * 设置微信企业号的EncodingAESKey
     */
    @Column(name = "aes_key")
    private String aesKey;

    /**
     * 设置微信企业应用的Secret
     */
    @Column(name = "secret")
    private String secret;

    /**
     * 设置微信企业号的token
     */
    @Column(name = "token")

    private String token;
    /**
     * 会员卡id
     */
    @Column(name = "card_id")
    private String cardId;
    /**
     * 公众号名称
     */
    @Column(name = "mp_name")
    private String mpName;

    /**
     * 商户号
     */
    @Column(name = "sub_mch_id")
    private String subMchId;

    @Column(name = "is_enable")
    private Short isEnable;

    @Column(name = "sub_appid")
    private String subAppid;

    @Column(name = "store_id")
    private String storeId;


}
